<?php


namespace app\miniapp\model;


use think\Model;

class DetailModel extends Model
{
    protected $name = 'detail';
    public function getImageAttr($img)
    {
        return request()->domain() . $img;
    }
    public function getImagesAttr($imgs)
    {
        $arr = explode(',',$imgs);
        $images = [];
        foreach ($arr as $ar) {
            $images [] = request()->domain() . $ar;
        }
        return $images;
    }

}